package com.aurora.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aurora.common.core.annotation.Excel;
import com.aurora.common.core.web.domain.BaseEntity;

/**
 * 分享对象 blog_shares
 * 
 * @author aurora
 * @date 2024-06-04
 */
public class BlogShares extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分享ID */
    private Long shareId;

    /** 分享的用户ID，关联到Users表的user_id */
    @Excel(name = "分享的用户ID，关联到Users表的user_id")
    private Long userId;

    /** 被分享的文章ID，关联到Posts表的post_id */
    @Excel(name = "被分享的文章ID，关联到Posts表的post_id")
    private Long postId;

    /** 分享类型 */
    @Excel(name = "分享类型")
    private Long shareType;

    public void setShareId(Long shareId) 
    {
        this.shareId = shareId;
    }

    public Long getShareId() 
    {
        return shareId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setShareType(Long shareType) 
    {
        this.shareType = shareType;
    }

    public Long getShareType() 
    {
        return shareType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("shareId", getShareId())
            .append("userId", getUserId())
            .append("postId", getPostId())
            .append("shareType", getShareType())
            .toString();
    }
}
